package com.personal.system.entity.approval;

import lombok.Data;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class BusinessApproveVo implements Serializable {

    /**
     * serialVersionUID: 描述
     */
    private static final long serialVersionUID = 5151732474244065096L;

    /**
     * 业务id
     */
    private String[] businessIds;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 审批状态
     */
    private String approvalStatus;

    /**
     * 审批意见
     */
    private String approvalOpinion;

    Map<String, ApproveDetail> businessIdApproveDetailMap = new HashMap<>();

    public void addApproveDetail(String businessId, ApproveDetail delayApprove) {
        businessIdApproveDetailMap.put(businessId, delayApprove);
    }

    public ApproveDetail getApproveDetailByBusinessId(String businessId) {
        return businessIdApproveDetailMap.get(businessId);
    }
}
